using System.Collections.Generic;
using System.Web.UI;

namespace ValidationFramework.Web.ASP
{
    /// <summary>
    /// Provides data for the <see cref="ParameterValidatorGenerator.ParametersRequired"/> event.
    /// </summary>
    public class ParametersRequiredEventArgs : TargetObjectRequiredEventArgs
    {
 
        #region Constructors

        /// <param name="controlsToValidate">The <see cref="Control"/>s to validate.</param>
        public ParametersRequiredEventArgs(ICollection<Control> controlsToValidate) : base(controlsToValidate)
        {
            Parameters = new Dictionary<string, object>();
        }

        #endregion


        #region Properties

        /// <summary>
        /// Gets a <see cref="Dictionary{TKey,TValue}"/> for storing parameters.
        /// </summary>
		public Dictionary<string, object> Parameters
		{
        	get;
			private set;
		}

        #endregion

    }
}